﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Mytrip.Users.Models.ChangePasswordModel>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
    <%=Html.PageTitle(UserLanguage.change_password,"/") %>
</asp:Content>
<asp:Content ContentPlaceHolderID="ScriptContent" runat="server">
<script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="/Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">

    <h2><%=UserLanguage.change_password %></h2>
    <p>
        <%=UserLanguage.change_password_text_first %>
    </p>
    <p>
        <%=String.Format(UserLanguage.change_password_text_last,UsersSetting.minRequiredPasswordLength) %>
    </p>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend><%=UserLanguage.account_information %></legend>
                
                <div class="editor-label">
                    <%= Html.Label(UserLanguage.OldPassword) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.OldPassword) %>
                    <%= Html.ValidationMessageFor(m => m.OldPassword) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.Label(UserLanguage.NewPassword) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.NewPassword) %>
                    <%= Html.ValidationMessageFor(m => m.NewPassword) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.Label(UserLanguage.ConfirmPassword) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </div>
                
                <p>
                    <%=Html.MytripInput("submit", UserLanguage.change_password) %>
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
